package dao

import (
	"time"
)

// 这是 LiMemberPointsHistory 的全局公开dao对象
var LiMemberPointsHistoryDao = liMemberPointsHistoryDao{}

// 这是 li_member_points_history表 的实体类
type LiMemberPointsHistory struct {
	Id            int       `json:"id" form:"id" v:"id"`                                     // ID
	CreateBy      string    `json:"create_by" form:"create_by" v:"create_by"`                // 创建者
	CreateTime    time.Time `json:"create_time" form:"create_time" v:"create_time"`          // 创建时间
	BeforePoint   int       `json:"before_point" form:"before_point" v:"before_point"`       // 消费之前积分
	Content       string    `json:"content" form:"content" v:"content"`                      // 内容
	MemberId      string    `json:"member_id" form:"member_id" v:"member_id"`                // 会员ID
	MemberName    string    `json:"member_name" form:"member_name" v:"member_name"`          // 会员名称
	Point         int       `json:"point" form:"point" v:"point"`                            // 当前积分
	PointType     int       `json:"point_type" form:"point_type" v:"point_type"`             // 消费积分类型
	VariablePoint int       `json:"variable_point" form:"variable_point" v:"variable_point"` // 消费积分

}

// 注意:这是 LiMemberPointsHistory 的私有dao对象
type liMemberPointsHistoryDao struct {
	Insert func(arg LiMemberPointsHistory) int                   //插入一条记录
	Update func(arg LiMemberPointsHistory) int                   //更新一条记录
	Delete func(arg LiMemberPointsHistory) int                   //删除一条记录
	Select func(arg LiMemberPointsHistory) LiMemberPointsHistory //获取一条记录
}
